﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Config.aspx.cs" Inherits="DBtuning.Config" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Aharoni" 
        Text="Configutation Page -- time for you to decide"></asp:Label>
    <br />
        <br />
        <asp:GridView ID="GridViewConfig" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" Font-Names="Arial" Font-Size="Small" ForeColor="#333333" 
            GridLines="None" Width="646px" CaptionAlign="Right" 
        DataSourceID="XmlDataSourceConfig" Height="16px">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="ThresholdName" HeaderText="ThresholdName" 
                    SortExpression="ThresholdName" Visible="False" />
                <asp:BoundField DataField="Description" HeaderText="ParameterName" 
                    SortExpression="Description" />
                <asp:TemplateField HeaderText="Alert(Up2U)">
                    <ItemTemplate>
                        <asp:TextBox ID="ThresholdValue" runat="server" CssClass="NumericTextBox" 
                            Width="120px" Text='<%# Bind("Threshold") %>'></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Warning(Up2U)">
                    <ItemTemplate>
                        <asp:TextBox ID="WarningValue" runat="server" CssClass="NumericTextBox" 
                            Text='<%# Bind("WarningValue") %>' Width="120px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Unit" HeaderText="Unit" SortExpression="Unit" />
                <asp:BoundField DataField="Default" HeaderText="Alert(FYI)" 
                    SortExpression="Default" />
                <asp:BoundField DataField="DefaultWarning" HeaderText="Warning(FYI)" 
                    SortExpression="DefaultWarning" />
            </Columns>
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    <asp:XmlDataSource ID="XmlDataSourceConfig" runat="server" 
        DataFile="~/App_Data/PerfConfig.xml"></asp:XmlDataSource>
    <br />
    <asp:Button ID="ButtonSave" runat="server" Font-Names="Aharoni" 
        Font-Size="Medium" onclick="ButtonSave_Click" Text="Save" Width="105px" 
        Height="19px" />
    <asp:Button ID="ButtonReset" runat="server" Font-Names="Aharoni" 
        Font-Size="Medium" onclick="ButtonReset_Click" Text="Reset" Width="105px" 
        Height="19px" />
</asp:Content>
